Changeset 910 in MondoRescue
- Timestamp:
- Nov 1, 2006, 6:22:57 PM (18 years ago)
- Location:
- branches/stable/mondo/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondoarchive/mondo-cli.c
r809 r910 637 637 strncpy(bkpinfo->nfs_remote_dir, "/", MAX_STR_LEN); 638 638 } 639 sprintf(tmp, "mount | grep - x \"%s .*\" | cut -d' ' -f3",639 sprintf(tmp, "mount | grep -E \"^%s .*\" | cut -d' ' -f3", 640 640 bkpinfo->nfs_mount); 641 641 strncpy(bkpinfo->isodir, -
branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c
r909 r910 400 400 f, file); 401 401 log_msg(2, tmp); 402 sprintf(command, "grep - x \"%s\"%s", file, list_fname);402 sprintf(command, "grep -E '^%s$' %s", file, list_fname); 403 403 res = run_program_and_log_output(command, FALSE); 404 404 paranoid_free(command); … … 1399 1399 paranoid_system(command); 1400 1400 } 1401 sprintf(command, "grep -x \"/dev/.*\"%s > %s",1401 sprintf(command, "grep -E '^/dev/.*' %s > %s", 1402 1402 g_biggielist_txt, g_filelist_imagedevs); 1403 1403 paranoid_system(command); … … 1540 1540 res = run_program_and_log_output(tmp, FALSE); 1541 1541 } else { 1542 sprintf(tmp, "ls /dev | grep - xq %ss[1-4].*", device);1542 sprintf(tmp, "ls /dev | grep -Eq '^%ss[1-4].*'", device); 1543 1543 if (!system(tmp)) { 1544 1544 sprintf(tmp, MNT_RESTORING "/sbin/fdisk -B %s", device); -
branches/stable/mondo/src/restore-scripts/mondo/compare-me
r567 r910 261 261 fi 262 262 263 grep -v - x "Files [^:]*:-"/tmp/compare-me.log \263 grep -v -E '^Files [^:]*:-$' /tmp/compare-me.log \ 264 264 | sort -u > /tmp/suspect.files 265 265
Note:
See TracChangeset
for help on using the changeset viewer.